// @ts-ignore
/* eslint-disable */
import request from '@/services/request';

/** 全部 PUT /v1/mobile/rates */
export async function rateV1MobileControllerRating(
  body: API.RateRatingDto,
  options?: { [key: string]: any },
) {
  return request<any>('/v1/mobile/rates', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 评分 PUT /v1/rates */
export async function rateV1ControllerRating(
  body: API.RateRatingDto,
  options?: { [key: string]: any },
) {
  return request<any>('/v1/rates', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 批量查询评分 GET /v1/rates/batch */
export async function rateV1ControllerBatchShow(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.RateV1ControllerBatchShowParams,
  options?: { [key: string]: any },
) {
  return request<API.RateShowResult[]>('/v1/rates/batch', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 登录后查询评分 GET /v1/rates/by-login */
export async function rateV1ControllerShowByLogin(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.RateV1ControllerShowByLoginParams,
  options?: { [key: string]: any },
) {
  return request<API.RateShowByLoginResult>('/v1/rates/by-login', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
